<?php
include '../header.php';
if (isset($a)) {
$spec=explode('-',$a);
$count=substr_count($a,'-');
for ($i=0;$i<=$count;$i++)
{
	$adress=$spec[$i];
	$pages=sql_query ("select * FROM `page` WHERE address='$adress'");
	$page=mysql_fetch_array($pages);
	echo '<strong style="background-color:#EED"><a href="/page/'.$page['address'].'">'.$page['title'].'</a></strong><br>
	<p style="margin-left:50px">'.$page['shorttext'].'</p>';
	}}
	
else {header('Location: /error/404');};
include '../footer.php';
?>